package com.dgshanger.sanhxiaofeisc.mvp.model

import com.dgshanger.sanhxiaofeisc.common.AppApi
import com.dgshanger.sanhxiaofeisc.entity.PurseEntity
import com.dgshanger.sanhxiaofeisc.mvp.contract.PurseContract
import com.xx.baseutilslibrary.network.rx.RxHelper
import com.xx.baseutilslibrary.network.rx.RxHttpObserver

/**
 * PurseModel
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/4/28 15:32.
 */

class PurseModel : PurseContract.Model {

    override fun myWallet(rxHttpObserver: RxHttpObserver<PurseEntity>) {
        AppApi.Api()
                .my_wallet()
                .compose(RxHelper.io_main())
                .subscribe(rxHttpObserver)
    }
}
